Annotation vocabulary setup (#4231) * Created vocab space * Directory to hold context testing tools * Add python vocab testing implementation * Copied sample files over for test input. * Expected results for correct annotation samples in N-Triples. * Annotation tests in Ruby. * HTML results of running Ruby annotation tests, as Markdown. * Entail graphs before linting, which fixes some false negatives. * Added a README and a local version of the vocab * Update some expected test expectations for Annotation triples. Update Annotation test results for Ruby. * Updated vocabulary to match CR version. * Update some gem dependencies and don't test RDFa version of manifest.
diff --git a/annotation-vocab/01-validJSON-LD-manual.html b/annotation-vocab/01-validJSON-LD-manual.html new file mode 100644 index 0000000..88a4ccf --- /dev/null +++ b/annotation-vocab/01-validJSON-LD-manual.html
@@ -0,0 +1,26 @@ +<!doctype html> +<html> +<head> +<title>Ensure Vocabulary JSON-LD is valid</title> +<link rel="stylesheet" href="/resources/testharness.css"> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +</head> +<body> + <p>The Annotation Vocabulary JSON-LD context is defined to be at http://www.w3.org/ns/oa</p> + <p>Retrieve that context document and expand the following example using a JSON-LD validation tool. Does it expand?</p> + <pre> +{ + "@context": "http://www.w3.org/ns/anno.jsonld", + "id": "http://example.org/anno4", + "type": "Annotation", + "body": "http://example.org/description1", + "target": { + "id": "http://example.com/image1#xywh=100,100,300,300", + "type": "Image", + "format": "image/jpeg" + } +} +</pre> +</body> +</html>